home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / dos / games / gripple / gripple.doc < prev    next >
Encoding:
Text File  |  1991-06-03  |  1.8 KB  |  41 lines

  1.  
  2.                 -- GRIPPLE --
  3.  
  4. "Gripple" is Completely-Free-And-How-Could-It-Be-Otherwise Ware.
  5.  
  6. This is my first program for the IBM as well as my first bigger-than-seven-
  7. lines program in C.  It's based on a little pocket game of the same name 
  8. by a company called M-Squared Incorporated.  I liked the pocket game very 
  9. much, but I found that the pieces were difficult to rotate and sometimes 
  10. even popped off!  The computer version is a solution to that, although
  11. I'm aware that the awkwardness of the pocket game is half the fun.
  12.  
  13. You will see a shuffled board of pegs when you run the program.  There
  14. should be four each of red, yellow, blue, and green pegs.  The object is
  15. to rotate regions of the board until the arrangement is such that the
  16. various colors are isolated in the four quadrants.  In other words, your
  17. goal is an arrangement like this:
  18.  
  19.     Y Y G G                       B B R R
  20.     Y Y G G                       B B R R
  21.     R R B B   ...or like this:    Y Y G G    ...and so on.
  22.     R R B B                       Y Y G G
  23.  
  24. Select a region of the board to rotate by hitting a number key from 1 to
  25. 5.  You can rotate each of the four quadrants (1 through 4) or the four
  26. center pegs (5).  Use the left and right arrow keys to rotate the selected
  27. region counterclockwise and clockwise, respectively.  Press control-R to
  28. reshuffle the pegs, and ESC to exit the program.
  29.  
  30. Your score appears in the upper-right corner of the screen.  It is the
  31. number of rotations you've made since the last reshuffling.
  32.  
  33. Please leave comments to DougB5 on America Online (the online service
  34. of champs.) I'm just getting started in C, and I'd really appreciate 
  35. comments from C enthusiasts on my code's efficiency or lack thereof.
  36.  
  37. Program was compiled with Turbo C++ 1.0, Copyright (C) 1990 by Borland
  38. International. 
  39.  
  40.  
  41.     Doug B.